<!doctype html>
<html data-ng-app="FileManagerApp">
<head>
    <meta name="viewport" content="initial-scale=1.0, user-scalable=no">
    <meta charset="utf-8">
    <title>web-filemanager</title>

	<link href="dist/css/bootstrap.min.css" rel="stylesheet">
 
	<script src="dist/js/jquery.min.js"></script>
    <script src="dist/js/bootstrap.min.js"></script>
    <script src="dist/js/angular.min.js"></script>
    <script src="dist/js/angular-translate.min.js"></script>
    <script src="dist/js/ng-file-upload.min.js"></script>
    <link href="dist/css/angular-filemanager.min.css" rel="stylesheet">
    <script src="dist/js/angular-filemanager.min.js"></script>

    <script type="text/javascript">
        // 重写默认Config配置
        angular.module('FileManagerApp').config(['fileManagerConfigProvider', function (config) {
            var defaults = config.$get();
            config.set({
                appName: 'angular-filemanager',
                defaultLang: 'zh',
                listUrl: '/file/com/base/ejar/FileManager/list/',
                uploadUrl: '/file/com/base/ejar/FileManager/upload/',
                downloadFileUrl: '/file/com/base/ejar/FileManager/preview/',
                createFolderUrl: '/file/com/base/ejar/FileManager/createFolder/',
                permissionsUrl: '/file/com/base/ejar/FileManager/changePermissions/',
                copyUrl: '/file/com/base/ejar/FileManager/copy/',
                moveUrl: '/file/com/base/ejar/FileManager/move/',
                removeUrl: '/file/com/base/ejar/FileManager/remove/',
                renameUrl: '/file/com/base/ejar/FileManager/rename/',
                getContentUrl: '/file/com/base/ejar/FileManager/getContent/',
                editUrl: '/file/com/base/ejar/FileManager/edit/',
                compressUrl: '/file/com/base/ejar/FileManager/compress/',
                extractUrl: '/file/com/base/ejar/FileManager/extract/',
                documentViewUrl: '/office/',
                pickCallback: function (item) {
                    var msg = 'Picked %s "%s" for external use'
                            .replace('%s', item.type)
                            .replace('%s', item.fullPath());
                    window.alert(msg);
                },

                allowedActions: angular.extend(defaults.allowedActions, {
                    pickFiles: false,
                    pickFolders: false,
                    downloadMultiple: false
                }),
                tplPath: 'app/templates'
            });
        }]);
    </script>
</head>

<body class="ng-cloak">
<angular-filemanager></angular-filemanager>
</body>
</html>
